import request from '@/utils/request'
export function getCaseEmployeeTypes () {
  return request({
    url: '/api/Case/CaseEmployee/GetCaseEmployeeTypes',
    method: 'get',
  })
}


export function getCompanies (params) {
  return request({
    url: '/api/Case/CaseEmployee/GetCompanies',
    method: 'get',
    params
  })
}

export function getEmployees (params) {
  return request({
    url: '/api/Case/CaseEmployee/GetEmployees',
    method: 'get',
    params
  })
}

export function getCaseEmployees (params) {
  return request({
    url: '/api/Case/CaseEmployee/GetCaseEmployees',
    method: 'get',
    params
  })
}

export function addCaseEmployee (data) {
  return request({
    url: '/api/Case/CaseEmployee/AddCaseEmployee',
    method: 'post',
    data
  })
}

export function editCaseEmployee (data) {
  return request({
    url: '/api/Case/CaseEmployee/EditCaseEmployee',
    method: 'post',
    data
  })
}

export function deleteCaseEmployee (id) {
  return request({
    url: '/api/Case/CaseEmployee/DeleteCaseEmployee',
    method: 'get',
    params: {
      id
    }
  })
}